Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Compressed SC JS libs not working in browser app

    Hi,

    I am trying to switch from the standard uncompressed SC JS libs to the compressed ones but am having no luck getting the setup right. I have
    searched the SC docs but I am still stuck i.e. FF/Firebug reports illegal
    characters when receiving a *.js.gz file's contents.

    I am deploying to Tomcat 6.x and browsing with IE/FF.
    I mod'd Tomcat's server.xml to contain:
    Code:
    compression="on"          compressableMimeType="text/javascript,application/javascript,application/x-gzip"
    after googling (and suspecting that the HTTP Response Header: Content-Encoding needed to be set to gzip, it was unset by default)
    and troubleshooting with Firebug/Fiddler2.

    My page header currently looks like:
    Code:
    <SCRIPT SRC="isomorphic/system/modules/ISC_Core.gz.js"></SCRIPT>
    but I've also tried the file extensions: *.js.gz, *_js.gz, *_gz.js

    Feeling a bit lost, could be all the chocolates I've consumed...

    TIA

    #2
    If you're using Pro or better, you just follow the installation instructions in the "Deploying SmartClient" topic and it's on. There's no Tomcat settings or mime types to adjust.

    Comment


      #3
      Hmmm...

      I'm using the 7.0 LGPL version of SC.
      I read this page: http://www.smartclient.com/docs/7.0rc2/a/b/c/go.html
      in the docs.

      My page works with the *.js libs.
      But it fails to load (with 'invalid character' error reports in IE & FF) properly when I point to a *.js.gz lib from a HTML SRC tag.
      My client browser(s) share the router in my office with the server I'm calling.

      Can anyone see what I'm missing? It's too simple to fail, but not with me at the controls!
      Last edited by bladewheels; 18 Dec 2009, 10:05.

      Comment

      Working...
      X